{% extends "base.html" %}

{% block javascripts %}
<script language="javascript" defer="defer" src="{{ JAVASCRIPT_URL }}datatriangulator.js"></script>
{% endblock %}

{% block title %}HIT | Hegelian Inquiry Tool - Data Triangulator{% endblock %}
{% block pagetitle %}Data Triangulator{% endblock %}

{% block content %}
<IMG SRC="/static/img/bar/{{anti}}data.png" WIDTH=900 ALT="Progress Bar" style="margin-bottom: 20px">
<div class="triangulation_link">Triangulating <a href="{{ link }}" target="_blank">{{ link }}</a></div>
<form action="{{ next }}" method="POST" name="dataform">
<input type="hidden" name="query" id="query" value="{{ query }}" />
{% csrf_token %}
<div class="results_container">
{% for enginename,data in results.items %}
	<div class="engineresults" id="{{ enginename }}">
		<img src="{{ STATIC_URL }}img/{{ data.enginelogo }}" class="enginelogo" />
		{% for r in data.searchresults %}
			{% if r %}
				<div class="resulttitle">{{ r.title }}</div>
				<div class="resulturl"><a href="{{ r.url }}" target="_blank">{{ r.url }}</a><input type="checkbox" name="links" value="{{ r.url }}"></div>
				<div class="resultdesc">{{ r.desc }}</div>
			{% endif %}
		{% endfor %}
	</div>
{% endfor %}
</div>
<span class="more_results"><img src="{{ STATIC_URL }}img/more_results.png" />Load more results</span>
<br /><br />

<div style="font-style: italic;">Enter additional links, seperated by new lines:</div>
<textarea name="additional_links" rows="20" style="width:800px;"></textarea><br /><br />
<h1>Extra notes</h1><br />
<textarea name="notes" rows="20" style="width:800px;"></textarea><br /><br />
<h1>Reliability</h1><br />
Give a ranking for reliability: <input type="text" name="reliability" value="0" />%
<br /><br />

<div class="buttons">
	<span class="next"><input type="submit" value="Save and continue" /></span>
</div>
</form>
{% endblock %}
